

// Koa_router路由
import Koa_router from "koa-router";
import userRouter from "@/router/User"
import productRouter from "@/router/Product"
import orderRouter from "@/router/Order"

// 实例汇总路由
const RouterInit=new Koa_router();

// 设置路由前缀
RouterInit.prefix("/api/v1");


// 产品商家模块
RouterInit.use("/user",userRouter.routes());
RouterInit.use("/product",productRouter.routes());
RouterInit.use("/order",orderRouter.routes());


export default RouterInit;
